package wyjx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wyjx.service.HystrixService;

/**
 * @描述
 * @创建人 wangyue
 * @创建时间2020/5/2711:35
 */
@RestController
public class HystrixController {

    @Autowired
    private HystrixService hystrixService;

    @RequestMapping("hi")
    public String hi(String name){
        return hystrixService.home(name);
    }
}
